import request1 from '@/utils/request1'

export interface CartData {
  id: number
  userId: string
  skuId: number
  cartPrice: number
  skuNum: number
  imgUrl: string
  skuName: string
  isChecked: number
  skuPrice: number
}
export interface cartListData {
  activityRuleList: null,
  cartInfoList:CartData[],
  createTime:string
}

export default {
  // 获取购物车列表
  cartList() {
    return request1.get<any,cartListData[]>('/api/cart/cartList')
  }
}
